package com.mtsmda.chapter2.overridingEx;

import java.io.IOException;

public class Horse extends Animal {

	@Override
	public void eat() {
		System.out.println("horse eat");
	}

	// Duplicate method eat() in type Horse
	/*
	 * public String eat(){ return ""; }
	 */

	@Override
	public void name() {
		System.out.println("Horse");
	}

	public void privateOverrideMethod() {
		System.out.println("");
	}

	public void doStuff(int age, String name) throws IOException {
		System.out.println(name + " " + "age - " + age);
	}

	/*
	 * public void doStuff(String name, int age) { System.out.println(name + " "
	 * + "age - " + age); }
	 */

	public String changeSize() {
		return "";
	}

	public String changeSize(int size) {
		return "";
	}

	public void changeSize(String name, int size) throws Exception {
	}

}